<?php /* Smarty version 2.6.18, created on 2009-05-07 07:57:38
         compiled from ua-admin/companynews_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'ua-admin/companynews_index.html', 54, false),array('modifier', 'truncate', 'ua-admin/companynews_index.html', 56, false),array('modifier', 'date_format', 'ua-admin/companynews_index.html', 61, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>控制台_<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/admin.js"></script>
</head>

<body>
<a name="top" />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;企业新闻管理</div></td></tr>
</table>
<br />

<!-- 搜索 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="6"><div align="left">企业新闻快搜</div></td></tr>
<form name="searchfrm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
">
<tr>
  <td width="9%">新闻标题:</td>
  <td width="15%"><input name="topic2" type="text" id="topic2"></td>
  <td width="10%">会员名称:</td>
  <td><input name="membername2" type="text" id="membername2"></td>
  <td>公司名称:</td>
  <td><input name="companyname2" type="text" id="companyname2"></td>
  </tr>

<tr>
  <td colspan="6"><div align="center">
    <input name="search" type="submit" id="search" value="查    询" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'">
  </div></td>
  </tr>
</form>
</table>

<br />
<!-- 标题 -->
<form name="listfrm" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header" align="center"><td><input name="idAll" type="checkbox" id="idAll" title="全选" onClick="uaCheckAll(this, 'id[]')"></td>
<td><strong>公司名称</strong></td>
<td><span>新闻标题 </span></td>
<td>状态</td>
<td><span>浏览量</span></td>
<td><strong>发布时间</strong></td>
<td><div style="float:right; margin-right:4px; padding-bottom:9px"><img onClick="collapse_change('1')" id="menuimg_1" src="./images/menu_reduce.gif" border="0" style="vertical-align:middle;"/></div></td></tr>
<tbody id="menu_1" style="display: yes">
<?php $_from = $this->_tpl_vars['NewsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['allnews'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['allnews']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['nl']):
        $this->_foreach['allnews']['iteration']++;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values' => "#eeeeee,#ffffff"), $this);?>
" align="center">
<td><input name="id[]" type="checkbox" id="id[]" onClick="uaCheckItem(this, 'idAll')" value="<?php echo $this->_tpl_vars['nl']['ID']; ?>
"></td>
<td><a href="company.php?action=mod&id=<?php echo $this->_tpl_vars['nl']['CompanyId']; ?>
" title="<?php echo $this->_tpl_vars['nl']['CompanyName']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['nl']['CompanyName'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)); ?>
</a></td>
<td><a href="../news/detail.php?action=view&id=<?php echo $this->_tpl_vars['nl']['ID']; ?>
" title="查看前台页面" target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['nl']['Topic'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35) : smarty_modifier_truncate($_tmp, 35)); ?>

</a></td>
<td><?php echo $this->_tpl_vars['nl']['CompanynewsStatus']; ?>
</td>
<td><?php echo $this->_tpl_vars['nl']['Click']; ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['nl']['PublishDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
<td colspan="2"><a href="./companynews.php?action=del&id=<?php echo $this->_tpl_vars['nl']['ID']; ?>
"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/delete.gif" width="13" height="13" border="0"></a></td>
</tr>
<?php endforeach; else: ?>
<tr bgcolor="#ffffff">
<td colspan="8" align="center">目前没有任何数据</td>
</tr>
<?php endif; unset($_from); ?>
</tbody>
<!-- 分页 -->
<tr align="center"><td class="altbg1" colspan="8"><?php echo $this->_tpl_vars['ByPages']; ?>
</td></tr>
<tr class="header" bgcolor="#ffffff">
<td colspan="6"><input class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'" type="submit" name="del" value="删除"></td>
<td><div align="center"><a title="返回顶部" href="#top"><img id="go_top" src="./images/go_top.gif" border="0" style="vertical-align:middle;"/></a></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>

<!-- 结束new -->
</body>
</html>